package com.prs.crm.domain.oa.schedule;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-4-17 11:27:21 周期性日程间隔
 */
@Entity
@Table(name="oa_intervalschedule")
public class IntervalSchedule extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;

	private String is_name;
	private String is_time;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="intervalSchedule",cascade=CascadeType.PERSIST)
	private Set<CycleSchedule> cycleSchedule;
	
	public Set<CycleSchedule> getCycleSchedule() {
		return cycleSchedule;
	}
	public void setCycleSchedule(Set<CycleSchedule> cycleSchedule) {
		this.cycleSchedule = cycleSchedule;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getIs_name() {
		return is_name;
	}
	public void setIs_name(String isName) {
		is_name = isName;
	}
	public String getIs_time() {
		return is_time;
	}
	public void setIs_time(String isTime) {
		is_time = isTime;
	}

}
